home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / business / pcprojct.zip / INSTALL.BAT next >
DOS Batch File  |  1990-05-24  |  2KB  |  60 lines

  1. echo off
  2. cls
  3. echo     ╒═══════════════════════════════════════════════════════════════╕
  4. echo     │ PC-Project 3.0 --Copyright 1988-90 The Whitewater Group, Inc. │
  5. echo     │                --A Windows 3.0 program written in Actor       │
  6. echo     │                --PC-Project may be freely distributed         │
  7. echo     ╘═══════════════════════════════════════════════════════════════╛
  8. echo  
  9. if NOT %1x==x goto c2
  10. :c1
  11. echo Parameters missing or incorrect.  The correct syntax is:
  12. echo  
  13. echo      INSTALL source: target: target:target-pathname
  14. echo  
  15. echo e.g. INSTALL A: C: C:\ACTOR
  16. echo  
  17. goto serror
  18. :c2
  19. :ok1
  20. if NOT %2x==x goto c2a
  21. echo The target: was not specified.
  22. goto c1
  23. :c2a
  24. :ok2
  25. if NOT %3x==x goto c3
  26. echo The target:target-pathname was not specified.
  27. goto c1
  28. :c3
  29. :c4
  30. echo  
  31. echo Installation will overwrite existing files with the same names.
  32. echo Press CONTROL-C (^C) to ABORT, any other key to continue...
  33. pause >NUL
  34. :c5
  35. echo  
  36. if not exist %3\actor.exe md %3 > nul
  37. %2
  38. cd %3
  39. if not exist classes\window.cls md CLASSES > nul
  40. if not exist act\userapp.act md ACT > nul
  41. if not exist res\actor.rc md RES > nul
  42. copy %1zoo.exe > nul
  43. echo Expanding PC-Project and source code...
  44. zoo xOSq/ %1project.zoo
  45. copy %1*.TXT > nul
  46. :finish
  47. cls
  48. echo  
  49. echo You have now installed PC-Project.  You will be left in the
  50. echo directory from which you can run it.  At the DOS prompt type
  51. echo  
  52. echo       WIN PROJECT (CR)                where (CR) is the Return key
  53. echo  
  54. echo Please read the files READPROJ.TXT and PMANUAL.TXT for instructions.
  55. goto :done
  56. :serror
  57. echo  
  58. echo Installation terminated because of errors.
  59. :done
  60.